﻿using System.Security.Permissions;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace FatFreeFitness.membership
{
    [AspNetHostingPermission(SecurityAction.Demand, Level = AspNetHostingPermissionLevel.Minimal)]
    public class MemberIDParameter : Parameter
    {
        protected override object Evaluate(HttpContext context, Control control)
        {
            return MembershipHelper.GetMemberID();
        }
    }
}